<?php


namespace app\api\validate;


use think\Validate;

class IDMustBeInt extends BaseValidate
{
    protected $rule = [
        'id' => 'require|isInterger',
//        'num' => 'in:1,2,3'
    ];

    protected $message = [
      'id' => 'id必须是正整数'
    ];



}